window.document.onkeydown=keyDown;
function keyDown(){
  if ((window.event.altKey)&&
      ((window.event.keyCode==37)||   //???? Alt+ ?????? ??
       (window.event.keyCode==39))){  //???? Alt+ ?????? ??
     event.returnValue=false;
     }

     /* ?????????????????????? Alt+ ????????
     ???? Alt+ ???????????????????????? Alt ????????
     ??????????????????????????????????????????????
     ???????????????????? Alt ??????????????????*/

  if ((event.keyCode == 8) && 
      (event.srcElement.type != "text" && 
      event.srcElement.type != "textarea" && 
      event.srcElement.type != "password") ||           //??????????????   
      (event.keyCode==112)||
      (event.keyCode==113)||
      (event.keyCode==114)||
      (event.keyCode==115)||
      (event.keyCode==116)||
      (event.keyCode==117)||
      (event.keyCode==118)||
      (event.keyCode==119)||
      (event.keyCode==120)||
      (event.keyCode==121)||
      (event.keyCode==122)||
      (event.keyCode==123)||
      (event.ctrlKey && event.keyCode==82)){            //Ctrl + R
     event.keyCode=0;
     event.returnValue=false;
     }
     
  if ((event.ctrlKey)&&(event.keyCode==78))   //???? Ctrl+n
     event.returnValue=false;
  if ((event.shiftKey)&&(event.keyCode==121)) //???? shift+F10
     event.returnValue=false;
  if (window.event.srcElement.tagName == "A" && window.event.shiftKey) 
      window.event.returnValue = false;  //???? shift ????????????????????
  if ((window.event.altKey)&&(window.event.keyCode==115)){ //????Alt+F4
	  window.showModelessDialog("about:blank","","dialogWidth:1px;dialogheight:1px");
      return false;}
  }
